package com.jinhongone.pattern.creater.factory.config_simpleFactory;

public class Test {

    public static void main(String[] args) {
        Coffee american = CoffeeFactory.getCoffee("american");
        american.addMilk();
        american.addSugar();
        System.out.println(american.getName());


        System.out.println("============================================");

        Coffee latte = CoffeeFactory.getCoffee("latte");
        latte.addMilk();
        latte.addSugar();
        System.out.println(latte.getName());

    }
}
